<?php
if(count($data)>0):
foreach ($data as $key => $item):
$link = Yii::app()->controller->createUrlProductDetail($item['product_id']);
$thumbImage = ShopHelpers::getImageProduct($item['image'], 'l');
?>
	<div class="product-items">
	<a href="<?php echo $link;?>">
		<img class="thumb" src="<?php echo $thumbImage;?>" />
		<div class="pro_title"><?php echo $item['title'];?></div>
		<div class="pro_viewd"><?php echo $item['view'];?> views</div>
	</a>
	</div>
<?php 
endforeach;
else:
echo '<div>Không có sản phẩm nào.</div>';
endif;
?>

